cmake_minimum_required(VERSION 3.10)

# Set the project name and version
project(SampleProject VERSION 1.0)

# Specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

set(CMAKE_AUTOMOC ON)

# Find the Qt5 package
find_package(Qt6 COMPONENTS Widgets REQUIRED)

# Add the executable
add_executable(MyQtApp main.cpp mainwindow.h)

# Link the Qt6 widgets library
target_link_libraries(MyQtApp Qt6::Widgets)